{% from "v2ex/macros.html" import nav_cate with context %}
{% from "v2ex/macros.html" import nav_subcate with context %}
{% from "v2ex/macros.html" import list_cate with context %}
{% from "v2ex/macros.html" import list_post with context %}

{% extends "v2ex/_base.html" %}
{% block title %}{{ data.title }}{% endblock %}
{% block rightbar %}{% endblock %}
{% block body %}
<div class="sep20"></div>
<div class="box">
    <div class="inner" style="background-color: #fff; border-top-left-radius: 3px; border-top-right-radius: 3px;">
        <ul id="Tabs">
            {% for nav in data.cate %}
            {{ nav_cate(nav) }}
            {% endfor %}
        </ul>
    </div>
    <div class="cell" style="background-color: #f9f9f9; padding: 10px 10px 10px 20px;" >
        <ul id = "Cells">
            {% for nav in data.subcate %}
            {{ nav_subcate(nav) }}
            {% endfor %}
        </ul>
    </div>
    <div class="cell" style="background-color:#6f5499;">
        <div id = "sjzlug-panel" style="height:70px;">
            <div class="sep10"></div>
            <div style="font-size:22px;text-align:center;color:#fff;">SJZLUG 石家庄Linux用户组</div>  
            <div class="sep10"></div>
            <div style="font-size:18px;text-align:center;color:#fff;">Shijiazhuang Linux User Group</div> 
            <div class="sep10"></div>
        </div>
    </div>
    {% for p in data.post %}
    {{ list_post(p) }}
    {% endfor %}
    <div class="inner">
        <span class="chevron">→</span>
        <a href="/more">更多新主题</a>
    </div>
</div>
<div class="sep20"></div>
<div class="box">
    <div class="cell">
        <div class="fr">
            <a href="/cates">浏览全部分类</a>
        </div>
        <span class="fade">
            SJZLUG/节点导航
        </span>
    </div>
    {% for nav in data.cate %}
    {{ list_cate(nav) }}
    {% endfor %}
</div>
{% endblock %}
